<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition>

<c:if test="#{not empty disabledSub and disabledSub eq true}">
  
    <li class="ui-state-disabled"><a href="#{hrefSub}"><h:outputLabel class="#{customTextClassSub}" value="#{valueSub}" /></a>
   
   <ul>
   
     <ui:insert></ui:insert>
   
   </ul> 
 
 </li> 

</c:if>

<c:if test="#{empty disabledSub or disabledSub eq false}">

  <li class="#{customClassSub}"><a href="#{hrefSub}"><h:outputLabel class="#{customTextClassSub}" value="#{valueSub}" /></a>
   
   <ul>
   
     <ui:insert></ui:insert>
   
   </ul> 
 
 </li>

</c:if>
  
  <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/resources/componentes/menu/js/Menu.js"></script>	
 
  <script type="text/javascript">

    var icons = "#{iconsSub}";
    
    if($.trim(icons) != ""){

    	$.extend(config,{"icons":{"submenu":icons}});
    	
    }

    <c:set var="customClassSub" value=""/>
    <c:set var="hrefSub" value=""/>
    <c:set var="customTextClassSub" value=""/>
    <c:set var="valueSub" value=""/>
    <c:set var="disabledSub" value=""/>
    <c:set var="iconsSub" value=""/>

  </script>
   
</ui:composition>
   
</html>